package com.nifostasky.entity;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.IdType;
import java.io.Serializable;
import lombok.Data;

/**
 * 用户与角色对应关系(SysUserRole)表实体类
 *
 * @author makejava
 * @since 2022-03-18 14:14:27
 */
@Data
@TableName(value = "sys_user_role")
public class SysUserRole implements Serializable{

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    /**
    *用户ID
    */
    @TableField(value = "user_id")
    private Long userId;

    /**
    *角色ID
    */
    @TableField(value = "role_id")
    private Long roleId;

}
